<!DOCTYPE html>
<html>

<head>
    <title>就业技能信息管理</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900' rel='stylesheet' type='text/css'>

    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/static/css/animate.css">
    <link rel="stylesheet" type="text/css" href="/static/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap-select.min.css">
    <link rel="stylesheet" type="text/css" href="/static/css/awesome-bootstrap-checkbox.css">
    <link rel="stylesheet" type="text/css" href="/static/css/style.css">
    <link rel="stylesheet" type="text/css" href="/static/css/theme.css">

    <script type="text/javascript" src="/static/js/jquery-2.1.3.min.js"></script>

    <script type="text/javascript" src="/static/js/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="/static/js/main.js"></script>

    <script type="text/javascript">
         function check(){
             var id= document.getElementById('Id');
             var id=id.value;

      var type= document.getElementById('Type');
      var type=type.value;

      var info= document.getElementById('Info');
      var info=info.value;

             if (!id){  //如果用户没有输入就业技能id
                 alert('请输入就业技能id！');
                 return false;
             }
      if (!type){  //如果用户没有输入就业技能类型
          alert('请输入就业技能类型！');
          return false;
      }
        

       if(!info){ //如果用户没有输入就业技能描述
          alert('请输入就业技能描述！');
          return false;
      }

     
      return true;
   }

    </script>
</head>

<body class="flat-blue sidebar-collapse">
    <div class="sidebar">
        <div class="menu-control toggle-sidebar">
            <a class="navbar-brand" href="#"><i class="fa fa-bar-chart"></i>高校就业信息管理系统</a>
            <i class="fa fa-bars navicon"></i>
        </div>
        <ul class="menu">
                        <li class="submenu">
                <a href="/index">
                    <div>
                        <i class="menu-icon fa fa-th-large"></i>
                        <span class="menu-title">主页</span>
                    </div>
                </a>
            </li>

            <li class="submenu">
                <a href="/getAllSkills">
                    <div>
                        <i class="menu-icon fa fa-table"></i>
                        <span class="menu-title">就业技能信息表</span>
                    </div>
                </a>
            </li>
            <li class="submenu">
                <a href="/addSkill" class="active">
                    <div>
                        <i class="menu-icon fa fa-file-text-o"></i>
                        <span class="menu-title">添加就业技能信息</span>
                    </div>
                </a>
            </li>


                </ul>
            </li>
        </ul>
    </div>
    <div class="content-container">
        <nav class="navbar navbar-default">
            <div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#"><i class="fa fa-bar-chart"></i>就业技能信息管理</a>
                    </div>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa fa-comments"></i> 0</a>
                            <ul class="dropdown-menu">
                                <li class="dropdown-title-bar">
                                    Notification ( 0 )
                                </li>
                                <li class="message">
                                    No new notification
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown notification-alert">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-exclamation-circle"></i> 3</a>
                            <ul class="dropdown-menu">
                                <li class="dropdown-title-bar">
                                    Notification ( 3 )
                                </li>
                                <li>
                                    <ul class="notification-list">
                                        <li>
                                            <a href="#">
                                                <div class="noti-icon noti-alert">
                                                    <i class="fa fa-exclamation-circle fa-2x"></i>
                                                </div>
                                                <div class="noti-message">1 new registration</div>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="noti-icon noti-success">
                                                    <i class="fa fa-check fa-2x"></i>
                                                </div>
                                                <div class="noti-message">3 new orders</div>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="noti-icon noti-primary">
                                                    <i class="fa fa-comments fa-2x"></i>
                                                </div>
                                                <div class="noti-message">2 customers messages</div>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{.userName}} <span class="caret"></span></a>
                            <ul class="dropdown-menu user-info">
                                <li class="dropdown-title-bar">
                                    <img src="/static/images/profile.jpg" class="profile-img">
                                </li>
                                <li>
                                    <div class="navbar-login">
                                        <h4 class="user-name">{{.userName}}</h4>
                                        <p>815486582@qq.com</p>
                                        <div class="btn-group margin-bottom-2x" role="group">
                                            <button type="button" class="btn btn-default"><i class="fa fa-user"></i><a href="/index">Profile</a></button>
                                            <button type="button" class="btn btn-default"><i class="fa fa-sign-out"></i><a href="/logout">Logout</a></button>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <!-- /.navbar-collapse -->
            </div>
            <!-- /.container-fluid -->
        </nav>
        <div class="container-fluid">
            <div class="row">

            </div>

            <div class="row">
                <div class="col-xs-12">
                    <div class="content-block">
                        <div class="block-title">添加就业技能信息</div>
                        <form class="form-horizontal" action="/skillAdding" method="post" onsubmit="return check()">
                            <div class="block-content">

                                <div class="form-group">
                                    <label for="inputPassword3" class="col-sm-3 control-label">就业技能id</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="Id" name="Id" placeholder="就业技能Id">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="inputPassword3" class="col-sm-3 control-label">就业技能类型</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="Type" name="Type" placeholder="就业技能类型">
                                    </div>
                                </div>
                                

                                  <div class="form-group">
                                    <label for="inputPassword3" class="col-sm-3 control-label">就业技能描述</label>
                                    <div class="col-sm-9">
                                        <textarea type="text" class="form-control" style="word-wrap:break-word;height:500px;text-align: left" id="Info" name="Info">{{.list.Info}}</textarea>
                                    </div>
                                </div>

                            </div>
                            <div class="block-footer">
                                <div class="form-group">
                                    <div class="col-sm-offset-3 col-sm-9">

                                        <input type="submit" class="btn btn-primary" >
                                        <!--
                                        <a href="/post" class="btn btn-primary" >提交</a>
                                        -->
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
               
</body>

</html>
